<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="chatList" style="float: left;height: 400px;width: 350px;background: #ffffff;position:relative;border:solid 2px #4E5465;overflow: scroll">
    <div id="chatItem" class="" style="width: 145px;height: 230px;background: #01AAED;color: #00F7DE;font-size: 15px;padding:5px">
    高晋峰
    </div><div id="chatIte1m" class="" style="width: 145px;height: 230px;background: #01AAED;color: #00F7DE;font-size: 15px;padding:5px">
    高晋峰
    </div>
    <button id="btn">点击</button>
</div>
<script src="../layui/layui.js"></script>

<script language="JavaScript">
    layui.use(['layer'],function () {
        var layer = layui.layer,
            $ = layui.$;
        $(document).on('click','#btn',function () {
            console.log($("div#chatList").html(""));
        });

    });
</script>
</body>
</html>